import Vue from 'vue'
import VueRouter from 'vue-router'
// 页面
import home from '../views/home.vue'
import photoUpload from '../views/photoUpload.vue'
import getMedal from '../views/getMedal.vue'
import battlelog from '../views/battlelog.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: home
  },
  {
    path: '/photoUpload',
    name: 'photoUpload',
    component: photoUpload
  },
  {
    path: '/getMedal',
    name: 'getMedal',
    component: getMedal
  },
  {
    path: '/battlelog',
    name: 'battlelog',
    component: battlelog
  },
]

const router = new VueRouter({
  routes
})

export default router
